package com.plan
/**
 * The QuantitiesInfo entity.
 *
 * @author  michael.geng  mokesoft
 *
 *
 */
class QuantitiesInfo {
    static mapping = {
         table 'pm_quantities_info'
         // version is set to false, because this isn't available by default for legacy databases
         version true
         id generator:'identity', column:'ID'
    }
    Integer id
    String sn
    String name
    String remark
    String str1
    String creater
    Long version
    Date dateCreated
    Date lastUpdated
    String str2

    static constraints = {
        sn(blank:false,size: 0..30)
        name(blank:false,size: 0..50)
        creater(size: 0..30)
        remark(size: 0..500)
        str1(nullable: true)
        str2(nullable: true)
    }
    String toString() {
        return "${sn}--${name}" 
    }
}
